HtmlSettings

Print settings available when printing HTML content on the PDF printer.

Since

7.13

Functions

Link copied to clipboard
public abstract void apply()
Applies the configured print settings.
Link copied to clipboard
public abstract T disablePrintingBackgrounds()
Disables printing background graphics.
Link copied to clipboard
public abstract T disablePrintingHeaderFooter()
Disables printing headers and footers.
Link copied to clipboard
public abstract T disablePrintingSelectionOnly()
Disables printing only the selected content.
Link copied to clipboard
public abstract T enablePrintingBackgrounds()
Enables printing background graphics.
Link copied to clipboard
public abstract T enablePrintingHeaderFooter()
Enables printing headers and footers.
Link copied to clipboard
public abstract T enablePrintingSelectionOnly()
Enables printing only the selected content.
Link copied to clipboard
public abstract String footer()
Returns a value used for the footer.
public abstract T footer(String html)
Configures HTML to be displayed in the footer.
Link copied to clipboard
public abstract String header()
Returns a value used for the header.
public abstract T header(String html)
Configures HTML to be displayed in the header.
Link copied to clipboard
public abstract boolean isPrintingBackgroundsEnabled()
Returns true if printing background graphics is enabled.
Link copied to clipboard
public abstract boolean isPrintingHeaderFooterEnabled()
Returns true if printing headers and footer is enabled.
Link copied to clipboard
public abstract boolean isPrintingSelectionOnlyEnabled()
Returns true if printing only the selected content is enabled.
Link copied to clipboard
public abstract Orientation orientation()
Returns the page orientation.
public abstract T orientation(Orientation orientation)
Configures the page orientation.
Link copied to clipboard
public abstract PageMargins pageMargins()
Returns the page margins.
public abstract T pageMargins(PageMargins pageMargins)
Configures the page margins for printing.
Link copied to clipboard
public abstract Set<PageRange> pageRanges()
Returns an immutable set containing the page ranges to print.
public abstract T pageRanges(Array<PageRange> pageRanges)
public abstract T pageRanges(Set<PageRange> pageRanges)
Configures the page ranges to print.
Link copied to clipboard
public abstract PagesPerSheet pagesPerSheet()
Returns the number of pages per sheet.
public abstract T pagesPerSheet(PagesPerSheet pagesPerSheet)
Configures the number of pages per sheet.
Link copied to clipboard
public abstract PaperSize paperSize()
Returns the paper size used by the printer.
public abstract T paperSize(PaperSize paperSize)
Configures the paper size for printing.
Link copied to clipboard
public abstract Optional<Path> pdfFilePath()
Returns an Optional that contains the absolute destination PDF file path, or an empty Optional if there is not path configured.
public abstract T pdfFilePath(Path pdfFilePath)
Configures the path to the destination PDF file to print to.
Link copied to clipboard
public abstract Scaling scaling()
Returns the scaling used by the printer.
public abstract T scaling(Scaling scaling)
Configures the scaling for printing.